--- <talkaction words="/emote" event="script" value="emote.lua"/> 
--- by Hellboy aka Kronos
function onSay(cid, words, param)
	local text_type = TALKTYPE_ORANGE_1 -- on TFS TALKTYPE_MONSTER
	local separator = "*"

	if param ~= "" then
		doCreatureSay(cid, separator..param..separator, text_type) -- doCreatureSay(uid, text, type[, ghost = false[, cid = 0[, pos]]])
	end
	return false
end


--[[ revsctipt system

local function emoteTxt(event)

	local text_color = TEXTCOLOR_DARKYELLOW
	local separator = "*"
	local param = event.text:sub(7)

	if param then
		sendAnimatedText(event.creature:getPosition(), text_color,separator..param..separator)
	end
end
registerOnSay("beginning", false, "/emote", emoteTxt) --- i don't know why used false xS
]]
